<?php
namespace Application\Configs;

class Setting
{
	use \Library\Traits\Patterns\Singleton;
	
	private function __construct()
	{
		define("WEB_ROOT", str_replace("index.php", "", $_SERVER["SCRIPT_NAME"]));
		define("LINK_ROOT", str_replace("Public/index.php", "", $_SERVER["SCRIPT_NAME"]));
		define("APP_ROOT", str_replace("Public/index.php", "Application/", $_SERVER["SCRIPT_FILENAME"]));
		define("LIB_ROOT", str_replace("Public/index.php", "Library/", $_SERVER["SCRIPT_FILENAME"]));
		
		define("DB_HOST", "localhost");
		define("DB_NAME", "mvc");
		define("DB_USER", "root");
		define("DB_PASS", "");
		define("DB_CHAR", "utf8");
		
		define("MOD_DEBUG", false);
		define("MOD_FORCE_TRACE", false);
		define("MOD_TRACE", (MOD_FORCE_TRACE?MOD_FORCE_TRACE:false));
		define("MOD_TRACE_CLASS_Library_Router_Router", (MOD_FORCE_TRACE?MOD_FORCE_TRACE:false));
		define("MOD_TRACE_CLASS_Application_Controllers_Index", (MOD_FORCE_TRACE?MOD_FORCE_TRACE:false));
		define("MOD_TRACE_CLASS_Application_Controllers_News", (MOD_FORCE_TRACE?MOD_FORCE_TRACE:false));
		define("MOD_TRACE_CLASS_Application_Controllers_User", (MOD_FORCE_TRACE?MOD_FORCE_TRACE:false));
		define("MOD_TRACE_CLASS_Application_Controllers_Error", (MOD_FORCE_TRACE?MOD_FORCE_TRACE:false));
		define("MOD_TRACE_CLASS_Application_Models_News", (MOD_FORCE_TRACE?MOD_FORCE_TRACE:false));
		define("MOD_TRACE_CLASS_Application_Modules_News", (MOD_FORCE_TRACE?MOD_FORCE_TRACE:false));
		define("MOD_TRACE_CLASS_Library_Controller_Controller", (MOD_FORCE_TRACE?MOD_FORCE_TRACE:false));
		define("MOD_TRACE_CLASS_Library_Loader_Autoloader", (MOD_FORCE_TRACE?MOD_FORCE_TRACE:false));
		define("MOD_TRACE_CLASS_Library_Model_Connexion", (MOD_FORCE_TRACE?MOD_FORCE_TRACE:false));
		define("MOD_TRACE_CLASS_Library_Model_Model", (MOD_FORCE_TRACE?MOD_FORCE_TRACE:false));
		define("MOD_TRACE_CLASS_Library_Traits_Patterns", (MOD_FORCE_TRACE?MOD_FORCE_TRACE:false));
	}
}
?>